package com.dc.designPattern._0_设计原则._5_isp.step2;

/**
 * Description: A_B 类，依赖接口Interface1,Interface2，其需要的所有方法都在B中完成了实现
 * @author: gdc
 * @date: 2021/7/23
 * @version 1.0
 */
class A_B {
    public void depend1(Interface1 i) {
        i.operation1();
    }

    public void depend2(Interface2 i) {
        i.operation2();
    }

    public void depend3(Interface2 i) {
        i.operation3();
    }
}